(lookup-words): Fix last change.
authorDave Love <fx@gnu.org>
Thu, 30 Jan 2003 22:58:32 +0000 (22:58 +0000)
committerDave Love <fx@gnu.org>
Thu, 30 Jan 2003 22:58:32 +0000 (22:58 +0000)
lisp/textmodes/ispell.el

index 249cbe28972def424e3068c087a8f32eadee570f..d4abe76818740301123e72ca85ae763df812310e 100644 (file)
@@ -1929,8 +1929,9 @@ Optional second argument contains the dictionary to use; the default is
            (while (search-backward "*" nil t) (insert "."))
            (setq word (buffer-string))
            (erase-buffer))
-         ;; Use apply since `lookup-dict' can be nil.
-         (setq status (apply #'call-process prog nil t nil args word lookup-dict))
+         (setq status (if lookup-dict
+                          (call-process prog nil t nil args word lookup-dict)
+                        (call-process prog nil t nil args word)))
          ;; grep returns status 1 and no output when word not found, which
          ;; is a perfectly normal thing.
          (if (stringp status)